<div id="content-header">
    <h1><?php echo __d('system','Replay Question');?></h1>
</div>
<div id="breadcrumb">
    <a href="<?php echo $this->Html->url('/admin/')?>" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> <?php echo __d('system','Home');?></a>
    <a href="#"><?php echo __d('system','Replay Question');?></a>
</div>
<div class="container-fluid">

<div class="row-fluid">
    <div class="span12">
        <?php
            echo $this->Html->script('ckeditor/ckeditor');
            echo $this->Form->create('Question', array('id' => 'paginate','class'=>'form-horizontal', 'action' => 'edit', 'url' => $this->request->here(false), 'type' => 'file',
                'inputDefaults' => array('label' => false, 'format' => array('before', 'label', 'between', 'input', 'after', 'error'))));

            echo $this->Html->script('ckeditor/ckeditor');
            echo $this->element('toolbar');
        ?>                                    
        <div class="widget-box">
            <?php                               
                $fieldsets['name'] = $this->Form->input('name', array(
                        'label' => array('text'=>__d('system','Name'),'class' => 'control-label'),
                        'between' => '<div class="controls">',
                        'div' => array('class' => 'control-group'),
                        'disabled'=>'disabled',
                        'after' => '</div>',                                                           
                        'type' => 'text'));                                 
                $fieldsets['address'] = $this->Form->input('address', array(
                        'label' => array('text'=>__d('system','Address'),'class' => 'control-label'),
                        'between' => '<div class="controls">',
                        'div' => array('class' => 'control-group'),
                        'after' => '</div>',   
                        'disabled'=>'disabled',                                                        
                        'type' => 'text'));                
                $fieldsets['email'] = $this->Form->input('email', array(
                        'label' => array('text'=>__d('system','Email'),'class' => 'control-label'),
                        'between' => '<div class="controls">',
                        'div' => array('class' => 'control-group'),
                        'after' => '</div>',  
                        'disabled'=>'disabled',                                                         
                        'type' => 'text')); 
                $fieldsets['question'] = $this->Form->input('question', array(
                        'label' => array('text'=>__d('system','Question'),'class' => 'control-label'),
                        'between' => '<div class="controls">',
                        'div' => array('class' => 'control-group'),
                        'after' => '</div>',   
                        'disabled'=>'disabled',                                                        
                        'type' => 'textarea')); 
                $fieldsets['answer'] = $this->Form->input('answer', array(
                        'label' => array('text'=>__d('system','Answer'),'class' => 'control-label'),
                        'between' => '<div class="controls">',
                        'div' => array('class' => 'control-group'),
                        'after' => '</div>',                       
                        'class'=>'ckeditor',                                                           
                        'type' => 'textarea'));
                $fieldsets['attach_file'] = $this->Form->input('attach_file', array(
                        'label' => array('text'=>__d('system','Attach File'),'class' => 'control-label'),
                        'between' => '<div class="controls">',
                        'div' => array('class' => 'control-group'),
                        'after' => '</div>',                                                                             
                        'type'  => 'file'));                                               
            ?>            
            <?php           
                $layout = array(
                    array('name','address'),                    
                    array('email','question'),
                    array('answer','attach_file'),                                                 
                );                
                $layout = array(
                    array(
                        'Basic setting',
                        $layout,
                    )
                );
                echo $this->Layout->form($layout, $fieldsets);
            ?>        
        </div>       
        <?php    
            echo $this->Form->hidden('node_type_id');
            echo $this->Form->hidden('Paginate.task', array('id' => 'task', 'value' => ''));
            echo $this->Form->end();
        ?>                                   
    </div>    
</div>
<style type="text/css">
    .move-label{clear: both;margin-top: 2px !important;padding-left: 35px;}
    .lbl-move{float: left;padding-left: 73px;}
</style>
